package org.anderground.editor.edits;

import org.anderground.core.model.Tunnel;

public class SetTunnelSmoothAction extends AbstractAction<Tunnel, Boolean> {

	public SetTunnelSmoothAction(Tunnel object, Boolean value) {
		super(object, value);
	}

	@Override
	protected Boolean getCurrentValue() {
		return getTarget().isSmooth();
	}

	@Override
	protected void setCurrentValue(Boolean value) {
		Editor.edit(getTarget()).setSmooth(value);

	}
}
